package cn.pping.fegin;

import cn.pping.doc.CourseDoc;
import cn.pping.fallback.CourseEsFeignClientFallbackFactory;
import cn.pping.result.JSONResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;


@FeignClient(value = "service-search", fallbackFactory = CourseEsFeignClientFallbackFactory.class)
public interface CourseEsFeignClient  {
    @PostMapping("/search/saveCourse")
    JSONResult saveCourseDoc(@RequestBody CourseDoc courseDoc);
}
